home *** CD-ROM | disk | FTP | other *** search
- //***************************************************************************
- //
- // Module: PowerUdp.hpp
- //
- // Purpose:
- // Declares CPowerUdp class
- //
- //***************************************************************************
- //
- // Written by Dart Communication Application Programming Group.
- // Copyright (c) 1994 Dart Communications. All Rights Reserved.
- //
- //***************************************************************************
-
- // PowerTCP.h should be included before this file
-
- // typedefs used here...
-
- // Classes used...
- class CUdp;
-
- //
- // CPowerUdp
- // Defines the functions required to provide a TCP stream to parent
- //
- class CPowerUdp
- {
- friend class CUdp;
- private:
- CUdp &Udp; // WINSOCK calls, etc here
- protected:
- // assessor functions from Udp follow...
- virtual void ConnectEvent (LPCSTR LocalDotAddr, WORD LocalPort, LPCSTR LocalName,
- WORD MaxByteCnt);
- virtual void ExceptionEvent(PT_EXCEPTION ErrorCode, LPCSTR ErrorDesc, DWORD DataTag)=0;
- virtual void RecvEvent (LPVOID Data, size_t ByteCnt, LPCSTR RemoteDotAddr,
- WORD RemotePort);
- virtual void SendEvent (DWORD DataTag);
- virtual PT_TYPE GetType (void);
- public:
- BOOL Close (BOOL Abort);
- BOOL Connect (LPCSTR OemLicense, PT_FLAGS Flags, LPCSTR LocalDotAddr, WORD LocalPort);
- BOOL Recv (void);
- BOOL Send (LPCSTR RemoteHost, WORD RemotePort,
- LPVOID Data, size_t ByteCnt, DWORD DataTag);
- PT_STATE State (void);
- CPowerUdp (HINSTANCE);
- ~CPowerUdp (void);
- int operator = (CPowerUdp &);
- };
-
-